package RMIServer;

import java.rmi.RemoteException;
import java.rmi.registry.*;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Server s1 = new Server();
			Registry registry = LocateRegistry.createRegistry(1099);//.getRegistry();
			registry.rebind("blackjack", s1);
			System.out.println("Server listening...");
			s1.save();
		} catch(RemoteException re) {
			re.printStackTrace();
		}
	}

}
